import { defHttp } from '/@/utils/http/axios';
const baseAPi = '/sysDictType/';
const basedataAPi = '/SysDictData/';

/**
 * @description: 添加字典
 */
export function adddictypemodel(data) {
  return defHttp.post({ url: `${baseAPi}adddicttype`, data });
}

/**
 * @description: 删除设备型号
 */
export function deldicmodel(data) {
  return defHttp.post({ url: `${baseAPi}deletedicttype`, data });
}

/**
 * @description: 更新字典
 */
export function updatedicemodel(data) {
  return defHttp.post({ url: `${baseAPi}updatedicttype`, data });
}

/**
 * @description: 获取字典
 */
export function getdataDic(data) {
  return defHttp.post({ url: `${baseAPi}page`, data });
}

/**
 * @description: 提交字典枚举
 */
export function saveOrUpdateDictItem(data) {
  return defHttp.post({ url: `${baseAPi}page`, data });
}
/**
 * @description: 字典值枚举列表
 */
export function itemList(data) {
  return defHttp.post({ url: `${basedataAPi}page`, data });
}
/**
 * @description: 字典值枚举删除
 */
export function deleteItem(data) {
  return defHttp.post({ url: `${basedataAPi}deletedictdata`, data });
}
/**
 * @description: 字典值枚举新增
 */
export function adddictdata(data) {
  return defHttp.post({ url: `${basedataAPi}adddictdata`, data });
}
/**
 * @description: 字典值枚举修改
 */
export function updatedictdata(data) {
  return defHttp.post({ url: `${basedataAPi}updatedictdata`, data });
}

